import http from '@/utils/request'

// 查询模块列表
export const moduleListPage = (data) => http.postJson('/module/list', data)

// 新增模块
export const moduleSave = (data) => http.postJson('/module/add', data)

// 修改模块
export const moduleUpdate = (data) => http.postJson('/module/edit', data)

// 根据id删除模块
export const moduleDeleteId = (id) => http.delete(`/module/delete/${id}`)
